#ifndef __MAIN_H
#define __MAIN_H

//
#define BIT_SET(x,n)			(x << (n - 1))
#define BIT_CLEAR(x,n)        (~(x << (n - 1)))

#include "stm32f10x.h"   
#include "lin_driver.h"
#include "LIN_BUFFER.h"
#include "LED.h"
#include "key.h"
#include "USART.h"
#include "stdio.h"
#include "string.h"
#include "Delay.h"
#include "TIM.h"
#include "OLED.h"

void LIN_LED_Drive(LIN_MSG* pLINMsg);

static void HardWareInit(void);

static void OLED_ShowInit(void);
void LIN_IDTypeConfig(void);

#endif  /* MAIN_H */
